﻿CREATE TABLE [dbo].[Waitstats] (
    [ServiceID]          INT            NOT NULL,
    [WaitType]           VARCHAR (4000)  NOT NULL,
    [WaitTimePercentage] DECIMAL (5, 2) NULL,
    CONSTRAINT [PK_Waitstats] PRIMARY KEY CLUSTERED ([ServiceID] ASC, [WaitType] ASC),
    CONSTRAINT [FK_Waitstats_Service] FOREIGN KEY ([ServiceID]) REFERENCES [dbo].[Service] ([ServiceID])
);

